package br.com.beethoven.data;

import java.io.Serializable;
import java.util.List;

import br.com.beethoven.exception.BDException;

public interface DAOGenerico<T> {
	
	public void addEntity(T entity) throws BDException;
	public void removeEntity(T entity) throws BDException;
	public void updateEntiy(T entity) throws BDException;	
	public List<T> listAll() throws BDException;
	public List<T> listOrderedByField(String campo, String ordenacao) throws BDException;
	public T getById(Serializable id) throws BDException;
	public List<T> getByField(String campo, Object value) throws BDException;
}
